Skip to content

Mark graphql-sock peer dependency as optional in typescript/operations plugin#10330

Merged
eddeee888 merged 4 commits intodotansimha:masterfrom
jnoordsij:patch-1
Apr 14, 2025
Merged

Mark graphql-sock peer dependency as optional in typescript/operations plugin#10330
eddeee888 merged 4 commits intodotansimha:masterfrom
jnoordsij:patch-1

Conversation

@jnoordsij
Copy link
Copy Markdown
Contributor

@jnoordsij jnoordsij commented Mar 28, 2025

Description

This PR marks the graphql-sock peer dependency introduced in #10323 as optional in the @graphql-codegen/typescript-operations plugin. This will ensure it will not trigger any Yarn warning (or potentially similar warnings for other package managers).

Related #10329

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Screenshots/Sandbox (if appropriate/relevant):

N/A

How Has This Been Tested?

N/A

Test Environment:

  • OS: any
  • @graphql-codegen/...: @graphql-codegen/typescript-operations 4.6.0
  • NodeJS: any

Checklist:

  • I have followed the CONTRIBUTING doc and the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 28, 2025

🦋 Changeset detected

Latest commit: 76d35b5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@graphql-codegen/typescript-operations Patch
@graphql-codegen/typescript-resolvers Patch
@graphql-codegen/client-preset Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@eddeee888
Copy link
Copy Markdown
Collaborator

eddeee888 commented Apr 9, 2025

Thanks @jnoordsij !
Would you be able to update the other package.json files that use graphql-sock as well?

  • packages/presets/client/package.json
  • packages/plugins/typescript/resolvers/package.json

Could you please also do yarn changeset and follow the prompt to add patches for affected packages?
Otherwise, we won't see this change until the next time it is updated and released

@eddeee888 eddeee888 self-requested a review April 9, 2025 14:20
@eddeee888 eddeee888 merged commit c5efba3 into dotansimha:master Apr 14, 2025
18 checks passed
@eddeee888
Copy link
Copy Markdown
Collaborator

Thank you!

@jnoordsij
Copy link
Copy Markdown
Contributor Author

Thanks for finishing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants